import { uniRequest } from '@/utils/request'

export const loginTeaAdmin = function(data) {//登录
	return uniRequest('loginTeaAdmin', 'POST', data);
}

export const getRoomList = function(data) {//茶室获取所有房间列表
	return uniRequest('getRoomList', 'GET', data);
}

export const addRoom = function(data) {//新增一个房间【B端】
	return uniRequest('addRoom', 'GET', data);
}

export const getTeaSetmealList = function(data) {//获取茶室所有套餐【B端】
	return uniRequest('getTeaSetmealList', 'GET', data);
}

export const addTeaSetmeal = function(data) {//新增一个套餐【B端】
	return uniRequest('addTeaSetmeal', 'POST', data);
}

export const apiUploadBase64Pic = function(data) {//图片上传 传参：茶室token、base64
	return uniRequest('apiUploadBase64Pic', 'POST', data);
}

export const saveTeaSetmeal = function(data) {//修改一个套餐【B端】
	return uniRequest('saveTeaSetmeal', 'POST', data);
}

export const getRechargeList = function(data) {//茶室获取充值信息列表（B端）
	return uniRequest('getRechargeList', 'GET', data);
}

export const addRechargeInfo = function(data) {//茶室设置充值金额（B端）
	return uniRequest('addRechargeInfo', 'GET', data);
}

export const addRechargeIntroduce = function(data) {//茶室设置充值信息（B端）
	return uniRequest('addRechargeIntroduce', 'GET', data);
}

export const saveRechargeInfo = function(data) {//茶室修改一条充值信息（B端）
	return uniRequest('saveRechargeInfo', 'GET', data);
}

export const teaGetMemberRecharge = function(data) {//茶室获取用户充值明细（B端）
	return uniRequest('teaGetMemberRecharge', 'GET', data);
}

export const createTeaMessage = function(data) {//茶室创建一条群发消息（B端）
	return uniRequest('createTeaMessage', 'POST', data);
}

export const updateTeaRoomInfo = function(data) {//茶室修改一个房间信息（B端）
	return uniRequest('updateTeaRoomInfo', 'POST', data);
}

export const getTeaCleanList = function(data) {//获取保洁列表
	return uniRequest('getTeaCleanList', 'GET', data);
}

export const addTeaClean = function(data) {//茶室创建一个保洁
	return uniRequest('addTeaClean', 'GET', data);
}

export const saveTeaClean = function(data) {//茶室修改一个保洁信息
	return uniRequest('saveTeaClean', 'GET', data);
}

export const teaGetOrderList = function(data) {//茶室获取当前茶室订单列表（B端）
	return uniRequest('teaGetOrderList', 'GET', data);
}

export const releaseOrder = function(data) {//茶室手动释放订单（B端）
	return uniRequest('releaseOrder', 'POST', data);
}

export const updateTeaInfotoB = function(data) {//B端新增修改茶室信息接口
	return uniRequest('updateTeaInfotoB', 'POST', data);
}

export const teaOpenDoor = function(data) {//茶室开门
	return uniRequest('teaOpenDoor', 'POST', data);
}

export const teaOpenSwitch = function(data) {//茶室控制断路器
	return uniRequest('teaOpenSwitch', 'POST', data);
}